function del_item (elm) {
    var id          = $(elm).attr('item-id'),
        currentpage = $(".currentpage").attr("page"),
        keyword     = $("#search_id").val(),
        model       = $(elm).attr('model');
    if(confirm("Do you want to delete this record ?")){
        $.ajax({
            url:'/admins/' + model + '/delete?id=' + id,
            success:function(){
                window.location = "/admins/" + model
            }
        })
    }
}